package com.fram.service.admin;

import java.util.List;

import com.fram.bean.admin.goods.response.GoodsResponse;
import com.fram.bean.admin.goods.response.GoodsSearchResponse;
import com.fram.bean.sys.PageBean;
import com.fram.common.exception.ProException;
import com.fram.entity.ProjectGoods;
import com.github.pagehelper.PageInfo;
import com.fram.entity.ProjectGoodsPrice;

/** 商品管理 **/
public interface GoodsService {
	// 后台管理功能-增加商品
	public Long insertProjectGoods(ProjectGoods request) throws ProException;

	// 后台管理功能-查询所有商品
	public PageInfo<GoodsSearchResponse> getProjectGoodsList(PageBean<ProjectGoods> request) throws ProException;

	// 后台管理功能-根据主键id查询
	public GoodsResponse selectById(Long id) throws ProException;

	// 后台管理功能-修改商品
	public void updateProjectGoods(ProjectGoods record) throws ProException;

	// 价格详情
	public ProjectGoodsPrice detailsPrice(Long id) throws ProException;

	// 列表价格
	public PageInfo<ProjectGoodsPrice> listPrice(PageBean<ProjectGoodsPrice> request) throws ProException;

	// 增加价格
	public void addPrice(ProjectGoodsPrice request) throws ProException;

	// 修改价格
	public void updatePrice(ProjectGoodsPrice request) throws ProException;
	//批量修改规格
	public void updatePriceList(List<ProjectGoodsPrice> request) throws ProException;

}
